package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-20
 */
@TableName("wz_order")
public class WzOrder extends Model<WzOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;
    @TableField("user_code")
    private String userCode;
    /**
     * 外部交易号
     */
    @TableField("trade_no")
    private String tradeNo;
    /**
     * 订单金额
     */
    @TableField("order_amount")
    private BigDecimal orderAmount;
    /**
     * 备注
     */
    private String remark;
    /**
     * 审核备注
     */
    @TableField("check_remark")
    private String checkRemark;
    /**
     * 状态：0-取消；1-待付款；2-订单完成；
     */
    private Integer states;
    /**
     * 支付方式:0-alipay;1-weixin
     */
    @TableField("pay_method")
    private String payMethod;
    @TableField("create_time")
    private Date createTime;
    @TableField("pay_time")
    private Date payTime;
    @TableField("delivery_time")
    private Date deliveryTime;


    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCheckRemark() {
        return checkRemark;
    }

    public void setCheckRemark(String checkRemark) {
        this.checkRemark = checkRemark;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.orderId;
    }

    @Override
    public String toString() {
        return "WzOrder{" +
        "orderId=" + orderId +
        ", userCode=" + userCode +
        ", tradeNo=" + tradeNo +
        ", orderAmount=" + orderAmount +
        ", remark=" + remark +
        ", checkRemark=" + checkRemark +
        ", states=" + states +
        ", payMethod=" + payMethod +
        ", createTime=" + createTime +
        ", payTime=" + payTime +
        ", deliveryTime=" + deliveryTime +
        "}";
    }
}
